<script type="text/javascript">
    layui.use(['index', 'treeSelect'], function () {
        let treeSelect = layui.treeSelect;
        treeSelect.render({
            elem: '#block',
            data: "{{route('admin.resume.block.tree')}}",
            placeholder: '请选择',
            success: function (data) {
                let block = '{{$thesaurus->block}}';
                if (block != null && block != '')
                    treeSelect.checkNode('block', block);
            }
        });
    });

</script>
